package com.fire.communication.config.scheduling;

import com.fire.communication.support.utils.MyLogger;
import com.fire.communication.web.mapper.DeviceBusinessMapper;
import org.springframework.scheduling.annotation.Scheduled;

import javax.annotation.Resource;

//@Component
public class Scheduling {

    @Resource
    public MyLogger logger;

    @Resource
    DeviceBusinessMapper deviceBusinessMapper;

    @Scheduled(cron="* 0/10 * * * ?")
    public void reportCurrentTime() {
        deviceBusinessMapper.updateToOff();
    }
}
